import {Routes,Route} from 'react-router-dom'
import Login from './containers/Login'
// import Register from './containers/Register'
import System from './containers/System'
import Commodity from './components/Commodity'
import Order from './components/Order'
import Shop from './components/Shop'
import Total from "./components/Total"
import User from "./components/User"
import Coupon from "./components/Coupon"
// import CommodityIngre from './components/Commodity/CommodityIngre'
export default function(){
    return (
        <Routes>
            <Route index element={<Login></Login>}/>
            <Route path='/login' element={<Login></Login>}/>
            {/* <Route path='/register' element={<Register></Register>}/> */}
            <Route path='/system' element={<System></System>}>
                <Route index element={<Commodity/>} />
                <Route path='commodity' element={<Commodity/>} />
                <Route path='order' element={<Order/>} />
                <Route path='shop' element={<Shop/>} />
                <Route path='total' element={<Total/>} />
                <Route path='user' element={<User/>} />
                <Route path='coupon' element={<Coupon/>} />
                {/* <Route path='CommodityIngre' element={<CommodityIngre/>} /> */}
            </Route>
        </Routes>
    )
}